package com.kuang.demo.mapper;

import com.kuang.demo.bo.zzy.Admin;
import com.kuang.demo.bo.zzy.AdminBo.IdNameAvaRole;
import com.kuang.demo.bo.zzy.AdminBo.IdNameAvaRole2;
import com.kuang.demo.bo.zzy.AdminBo.ReCreateAdmin;
import com.kuang.demo.bo.zzy.AdminBo.ReturnUpdate;
import com.kuang.demo.bo.zzy.AdminExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    long countByExample(AdminExample example);

    int deleteByExample(AdminExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    List<Admin> selectByExample(AdminExample example);

    Admin selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    List<IdNameAvaRole> selectByExample2(AdminExample adminExample);

    void deleteById(Integer id);

    int updateAdmin(@Param("update1") IdNameAvaRole2 idNameAvaRole2);

    ReturnUpdate selectUpdateAdmin(Integer id);

    void createAdmin(@Param("insert1") ReturnUpdate returnUpdate);

    ReCreateAdmin selectCreateAdmin(String username);

    int selectByUsername(String username);
}